#ifndef FRM_REGISTER_H
#define FRM_REGISTER_H

#include <QWidget>
#include <QMessageBox>
#include <QTimer>
#include "user.h"
namespace Ui {
class Frm_Register;
}

class Frm_Register : public QDialog
{
    Q_OBJECT

public:
    explicit Frm_Register(QWidget *parent = nullptr);
    ~Frm_Register();
public slots:
    void OnRegisterDone();
    void TimeOut();
    void OnVerify();
 signals:
    void RequestForVerify(QString);
    void RequestForNewUser(User*, QString);
private:
    Ui::Frm_Register *ui;
    QTimer timer;
    int cnt = 60;
};

#endif // FRM_REGISTER_H
